package top.huxy.boot.model.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author huxy
 * @date 2021-09-19
 **/
@Data
@NoArgsConstructor
public class ExceptionLog implements Serializable {

    private Integer id;

    private String requestId;

    private String stackTrace;

    private String message;

    private String exceptionName;

    private long createTime=System.currentTimeMillis();

    public ExceptionLog(String requestId, String stackTrace, String message, String exceptionName) {
        this.requestId = requestId;
        this.stackTrace = stackTrace;
        this.message = message;
        this.exceptionName = exceptionName;
    }
}
